package com.hyt.it.ogt.kq.service.bm.feign.sq;

import com.hyt.common.apiInfor.ApiResponse;
import com.hyt.it.ogt.kq.service.bm.feign.sq.model.OrganCandidateInfoVO;
import com.hyt.it.ogt.kq.service.bm.feign.sq.model.PtCandidateParamVO;
import com.hyt.it.ogt.kq.service.gov.model.dto.ExamSubjectDTO;
import com.hyt.loginfo.config.OAuth2FeignRequestConfig;
import com.hyt.model.PageParam;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.cloud.openfeign.SpringQueryMap;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient(name = "it-ogt-sq", contextId = "it-ogt-sq-pt", fallbackFactory = SqClientHystrix.class, configuration = OAuth2FeignRequestConfig.class)
public interface SqClient {

    /**
     * 分页查询考生信息
     *
     * @param ptCandidateParam
     * @return
     */
    @GetMapping("/pt/candidate/getByPage")
    ApiResponse<PageParam<OrganCandidateInfoVO>> getByPage(@SpringQueryMap PtCandidateParamVO ptCandidateParam);

    /**
     * 根据科目id获取科目详情
     */
    @GetMapping(value = "/pt/examSubject/queryById")
    ApiResponse<ExamSubjectDTO> querySubjectById(@RequestParam String id);
}
